package Exercise3.exercise3;
import java.util.*;
public class Test2 {
	public static void main(String[] args) {
		Scanner in=new Scanner(System.in);
		System.out.println("请输入整数：");
		while(in.hasNextInt()) {
			int a=in.nextInt();
			if(a%5==0) {
				if(a%6==0) {
					System.out.println(a+" is divisible by both 5 and 6");
				}
				else {
					System.out.println(a+" is divisible by 5 or 6, but not both");
				}
			}
			else {
				if(a%6==0) {
					System.out.println(a+" is divisible by 5 or 6, but not both");
				}
				else {
					System.out.println(a+" is not divisible by either 5 or 6");
				}
			}
		}
	}
}
